Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Added an optional memo input #181

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

jamespierog
Copy link

@jamespierog jamespierog commented Mar 20, 2022

Summary

The Galoy backend API already supports an optional memo field when creating a lightning invoice, but the frontend interface didn't yet have a memo field. This pull request adds an optional memo field and allows users to send memos to each other over lightning invoices.

How it works

The new memo input field lives on the [username] page and passes the memo data to the ReceiveAmount and RecieveNoAmount components. The RecieveNoAmount component passes that memo information to a modified gql mutation which receives a lightning payment request from the backend. The RecieveAmount component passes the memo information to the GenerateInvoice component which generates a lightning invoice containing that memo information.

The memo input has been tested with US-ASCII characters, Korean characters, Chinese characters, and emojis, and has been able to encode memo data into lightning invoices.

@bodymindarts
Copy link
Member

as you can see the 'Semantic Pull Request' check is failing. Perhaps you could squash the commits into 1 and force push conforming to https://www.conventionalcommits.org/en/v1.0.0/.

@jamespierog
Copy link
Author

The git commits got squashed and it's passing all checks now. 👍

@Extheoisah
Copy link
Contributor

@daviroo @UncleSamtoshi @jamespierog I guess we can close this PR since we already have this feature in the cash register

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants